<?php if (!defined('THINK_PATH')) exit();?> <?php if(is_array($arr)): foreach($arr as $key=>$v): ?><tr>
                                        <td>
                                            <?php echo ($v['id']); ?>
                                        </td>
                                        <td>
                                            <?php echo ($v['name']); ?>
                                        </td>
                                        <td>
                                            <?php echo ($v['sex']); ?>
                                        </td>
                                        <td>
                                            <?php echo ($v['age']); ?>
                                        </td>
                                        <td>
                                            <?php echo ($v['class']); ?>
                                        </td>
                                        <td>
                                            <a href="<?php echo U('Home/Index/detail',['id'=>$v['id']]);?>">
                                                详情
                                            </a>
                                            <a href="<?php echo U('Home/Index/update',['id'=>$v['id']]);?>">
                                                编辑
                                            </a>
                                            <a href="<?php echo U('Home/Index/del',['id'=>$v['id']]);?>" onclick="if(confirm('确定删除吗？')===false) return false">
                                                删除
                                            </a>
                                        </td>
                                    </tr><?php endforeach; endif; ?>